package com.kb.spring.jpa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kb.spring.jpa.dao.AddressCrudRepository;
import com.kb.spring.jpa.entities.Address;

@Service
public class AddressCrudService {
	@Autowired
	private AddressCrudRepository addressCrudRepository;
	
	@Transactional
	public void saveAddress(List<Address> list){
		addressCrudRepository.save(list);
	}
}
